package com_.dxy_test_.diy_tomcat_.servlet_;

import com_.dxy_test_.diy_tomcat_.MyRequest;
import com_.dxy_test_.diy_tomcat_.MyResponse;
import com_.dxy_test_.diy_tomcat_.MyServlet;

import java.io.IOException;

/**
 * @Description HelloServlet
 * @Author dangxianyue
 * @Date 2022/9/26 15:40
 */
public class HelloServlet extends MyServlet {

    @Override
    protected void doGet(MyRequest request, MyResponse response) throws IOException {
        doPost(request, response);
    }

    @Override
    protected void doPost(MyRequest request, MyResponse response) throws IOException {
        System.out.println("HelloServlet处理业务！");
        response.write("Hello World！");
    }
}
